package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 获取客户朋友圈的互动数据响应对象
 * @author: liukunlong
 * @date: 2021-03-05 10:27
 */
public class GetMomentCommentsResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * comment_list : [{"external_userid":"xxx","create_time":1605172726}]
     * like_list : [{"external_userid":"xxx","create_time":1605172726}]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * commentList
     */
    @JSONField(name = "comment_list")
    private List<CommentListDTO> commentList;
    /**
     * likeList
     */
    @JSONField(name = "like_list")
    private List<LikeListDTO> likeList;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public List<CommentListDTO> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<CommentListDTO> commentList) {
        this.commentList = commentList;
    }

    public List<LikeListDTO> getLikeList() {
        return likeList;
    }

    public void setLikeList(List<LikeListDTO> likeList) {
        this.likeList = likeList;
    }

    public static class CommentListDTO {
        /**
         * externalUserid
         */ /**
         * external_userid : xxx
         * create_time : 1605172726
         */

        @JSONField(name = "external_userid")
        private String externalUserid;
        /**
         * createTime
         */
        @JSONField(name = "create_time")
        private Integer createTime;

        public String getExternalUserid() {
            return externalUserid;
        }

        public void setExternalUserid(String externalUserid) {
            this.externalUserid = externalUserid;
        }

        public Integer getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Integer createTime) {
            this.createTime = createTime;
        }
    }

    public static class LikeListDTO {
        /**
         * externalUserid
         */ /**
         * external_userid : xxx
         * create_time : 1605172726
         */

        @JSONField(name = "external_userid")
        private String externalUserid;
        /**
         * createTime
         */
        @JSONField(name = "create_time")
        private Integer createTime;

        public String getExternalUserid() {
            return externalUserid;
        }

        public void setExternalUserid(String externalUserid) {
            this.externalUserid = externalUserid;
        }

        public Integer getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Integer createTime) {
            this.createTime = createTime;
        }
    }
}
